﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DynamicBatchCombine : MonoBehaviour
{
    public GameObject template;


    void OnEnable()
    {
        for (int i = 0; i < 1000; i++)
        {
            var go = Instantiate(template);
            go.transform.position = Random.insideUnitSphere;
            go.transform.rotation = Quaternion.LookRotation(Random.insideUnitSphere);
        }
    }
}
